package time.burrito.menus;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

public class MenuPrincipal extends Activity {
	
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.menu_principal);
		
		((Button)findViewById(R.id.btnJuegoNuevo)).setOnClickListener(new OnClickListener(){
        	
        	public void onClick(View v) {
        		finish();
        		Intent intencion= new Intent(MenuPrincipal.this, SeleccionarNivel.class);
        		startActivity(intencion);
        	}
        	});
		
		((Button)findViewById(R.id.btnMarcadores)).setOnClickListener(new OnClickListener(){
        	
        	public void onClick(View v) {
        		finish();
        		Intent intencion= new Intent(MenuPrincipal.this, Marcadores.class);
        		startActivity(intencion);
        	}
        	});
		
		((Button)findViewById(R.id.btnOpciones)).setOnClickListener(new OnClickListener(){
        	
        	public void onClick(View v) {
        		finish();
        		Intent intencion= new Intent(MenuPrincipal.this, Opciones.class);
        		startActivity(intencion);
        	}
        	});
		
		((Button)findViewById(R.id.btnAcercaDe)).setOnClickListener(new OnClickListener(){
        	
        	public void onClick(View v) {
        		finish();
        		Intent intencion= new Intent(MenuPrincipal.this, AcercaDe.class);
        		startActivity(intencion);
        	}
        	});
		((Button)findViewById(R.id.btnSalir)).setOnClickListener(new OnClickListener(){
        	
        	public void onClick(View v) {
        		finish();
        	}
        	});
	}
}
